package com.hu.zhcc.shiro.service.lgx;

import com.hu.zhcc.shiro.dao.lgx.TMemberMapper;
import com.hu.zhcc.shiro.entity.lgx.TMember;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TmemberServiceImpl implements TmemberService {
    @Autowired
    TMemberMapper tMemberMapper;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tMemberMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TMember record) {
        return tMemberMapper.insert(record);
    }

    @Override
    public int insertSelective(TMember record) {
        return tMemberMapper.insertSelective(record);
    }

    @Override
    public TMember selectByPrimaryKey(Integer id) {
        return tMemberMapper.selectByPrimaryKey(id);
    }

    @Override
    public TMember selectByIdCard(String idcard) {
        return tMemberMapper.selectByIdCard(idcard);
    }

    @Override
    public List<TMember> selectByName(String name) {
        return tMemberMapper.selectByName(name);
    }

    @Override
    public int updateByPrimaryKeySelective(TMember record) {
        return tMemberMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TMember record) {
        return tMemberMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<TMember> TmemberList() {
        return tMemberMapper.TmemberList();
    }

    @Override
    public TMember queryByIdCard(String idCard) {
        return tMemberMapper.queryByIdCard(idCard);
    }

}
